/**
 * 首页展示。container控件加载入口。
 */
 import React from "react";
 import { createStore, applyMiddleware } from "redux";
 import thunk from "redux-thunk";
 import reducer from "../reducers";
 let AppContainer: any = null;
 const applyMiddlewareTrunk = applyMiddleware(thunk);
 const createStoreWithMiddleware = applyMiddlewareTrunk(createStore);
 import { Navigator } from "react-native-deprecated-custom-components";
 import { Provider } from "react-redux";
 
 export default class StoreShop extends React.Component {
   store = createStoreWithMiddleware(reducer);
 
   constructor(props: any) {
     super(props);
   }
 
   render() {
     if (!AppContainer) {
       AppContainer = require("./StoreShopContainer").default;
     }
 
     return (
       <Navigator
         style={{ flex: 1 }}
         initialRoute={{
           component: AppContainer,
           param: { },
         }}
         renderScene={(route: any, navigator: any) => {
           let Component = route.component;
           let param = route.param;
           navigator.param = param;
           return (
             <Provider store={this.store}>
               <Component  {...this.props} />
             </Provider>
           );
         }}
       />
     );
   }
 }
 